package com.mic.yzzn.plc.model;

/**
 * PLC 站点
 * 
 * @author mic
 *
 */
public class Station {

	/** 类型 */
	private String type;

	/** 编号 (IP:PORT:LOCATION) 请查看PLC配置文件*/
	private String name;

	public Station() {
	}

	public Station(String type, String name) {
		super();
		this.type = type;
		this.name = name;
	}

	@Override
	public String toString() {
		return type + " " + name;
	}

	// getters and setters

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCode() {
		return name;
	}

	public void setCode(String code) {
		this.name = code;
	}

}
